using Admin.NET.Core;
using SqlSugar;

namespace Admin.NET.Application.Entity.Business;

[SugarTable("PowerRateRetrieveRecord", "电费退补记录")]
[SysTable]
public class PowerRateRetrieveRecord : EntityTenant
{
	/// <summary>
	/// 周期
	/// </summary>
	public string Cycle { get; set; }

	/// <summary>
	/// 表号
	/// </summary>
	public string Sn { get; set; }

	/// <summary>
	/// 电表名称
	/// </summary>
	public string Name { get; set; }

	/// <summary>
	/// 0单费率，1复费率
	/// </summary>
	public int Type { get; set; }

	/// <summary>
	/// 单费率单价 元/度
	/// </summary>
	[SugarColumn(Length = 28, DecimalDigits = 10)]
	public decimal? Price { get; set; }

	/// <summary>
	/// 尖 单价 元/度
	/// </summary>
	[SugarColumn(Length = 28, DecimalDigits = 10)]
	public decimal? SharpPrice { get; set; }

	/// <summary>
	/// 峰 单价 元/度
	/// </summary>
	[SugarColumn(Length = 28, DecimalDigits = 10)]
	public decimal? PeakPrice { get; set; }

	/// <summary>
	/// 平 单价 元/度
	/// </summary>
	[SugarColumn(Length = 28, DecimalDigits = 10)]
	public decimal? FlatPrice { get; set; }

	/// <summary>
	/// 谷 单价 元/度
	/// </summary>
	[SugarColumn(Length = 28, DecimalDigits = 10)]
	public decimal? ValleyPrice { get; set; }

	/// <summary>
	/// 退的费用（元）（退钱到房间余额）
	/// </summary>
	[SugarColumn(Length = 28, DecimalDigits = 10)]
	public decimal? RefundPrice { get; set; }

	/// <summary>
	/// 补的费用（元）（从房间余额抵扣）
	/// </summary>
	[SugarColumn(Length = 28, DecimalDigits = 10)]
	public decimal? RepairPrice { get; set; }

	/// <summary>
	/// 是否生效，0待生效，1已生效,2计算中
	/// </summary>
	public int IsTakeEffect { get; set; }

	public long RoomId { get; set; }

	public string? RoomName { get; set; }

	public long? BuildingId { get; set; }

	public string? BuildingName { get; set; }
}
